using System;
using System.Collections.Generic;
using System.Text;
using System.Xml.Serialization;
using WozLib.WozObjects;

namespace WOzTestUI.WozObjects
{
  public class AudioPromptServerObject : ServerObject
  {

    [XmlAttribute("Data")]
    public string Data
    {
      get
      {
        if (ServerObjectRegistry.ContainsObject(this.ServerID))
        {
          IServerObject iServerObject = ServerObjectRegistry.GetObject(this.ServerID);
          if (iServerObject is AudioPrompt)
          {
            return (iServerObject as AudioPrompt).Data;
          }
          else
          {
            // this shouldn't happen
            return null;
          }
        }
        else
        {
          return _Data;
        }
      }

      set { _Data = value; }
    } string _Data;

    public AudioPromptServerObject()
    {
    }

    public AudioPromptServerObject(long serverID)
      : base(serverID)
    {
    }
  }
}
